<?php
require 'config.php';
$generate_time = microtime_float();
ob_clean();
$CheckoutController = new CheckoutController();
if($CheckoutController->step == 2 && $CheckoutController->bill_generated){
    //redirect tới trang detail hóa đơn
    $bill_id = $CheckoutController->bill_generated['id'];
    redirect(generate_bill_url($bill_id));
}
?>
<?=$CheckoutController->loadHeader()?>
<body>
<div class="top_header">
    <? include '../includes/inc_top_header.php'?>
</div><!-- End top_header -->
<div class="container">
    <div class="wrap_container">
        <? include '../includes/inc_header.php'?>
        <? include '../includes/inc_nav.php'?>
        <? include '../includes/inc_checkout.php'?>
    </div><!-- End wrap_container -->
</div><!-- End container -->
<? include '../includes/inc_footer.php'?>
<? include '../includes/inc_ads.php'?>
</body>
<?=$CheckoutController->loadFooter($generate_time)?>
